home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / PowerD / Pdmod / modules / sys / errno.m < prev    next >
Encoding:
Text File  |  2002-10-28  |  8.3 KB  |  161 lines

  1. /*
  2.  * $Id: errno.h,v 1.5 1994/03/22 07:18:56 jraja Exp $
  3.  *
  4.  * HISTORY
  5.  * $Log: errno.h,v $
  6.  * Revision 1.5  1994/03/22  07:18:56  jraja
  7.  * Removed __sys_errlist and __sys_nerr declarations.
  8.  *
  9.  * Revision 1.4  1993/05/16  00:22:52  ppessi
  10.  * Changed net_errlist to __sys_errlist
  11.  *
  12.  * Revision 1.3  1993/03/22  01:21:22  ppessi
  13.  * Errno definitions for socket and network library.
  14.  *
  15.  * Revision 1.2  93/03/03  19:52:31  19:52:31  jraja (Jarno Tapio Rajahalme)
  16.  * Cleanup. Removed global int errno.
  17.  * 
  18.  * Revision 1.1  92/11/20  15:42:06  15:42:06  jraja (Jarno Tapio Rajahalme)
  19.  * Initial revision
  20.  */
  21.  
  22. /*
  23.  * Copyright (c) 1982, 1986, 1989 Regents of the University of California.
  24.  * All rights reserved.
  25.  *
  26.  * Redistribution and use in source and binary forms, with or without
  27.  * modification, are permitted provided that the following conditions
  28.  * are met:
  29.  * 1. Redistributions of source code must retain the above copyright
  30.  *    notice, this list of conditions and the following disclaimer.
  31.  * 2. Redistributions in binary form must reproduce the above copyright
  32.  *    notice, this list of conditions and the following disclaimer in the
  33.  *    documentation and/or other materials provided with the distribution.
  34.  * 3. All advertising materials mentioning features or use of this software
  35.  *    must display the following acknowledgement:
  36.  *      This product includes software developed by the University of
  37.  *      California, Berkeley and its contributors.
  38.  * 4. Neither the name of the University nor the names of its contributors
  39.  *    may be used to endorse or promote products derived from this software
  40.  *    without specific prior written permission.
  41.  *
  42.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  43.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  44.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  45.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  46.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  47.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  48.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  49.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  50.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  51.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  52.  * SUCH DAMAGE.
  53.  *
  54.  *      @(#)errno.h     7.13 (Berkeley) 2/19/91
  55.  */
  56.  
  57. #define EPERM           1               /* Operation not permitted */
  58. #define ENOENT          2               /* No such file or directory */
  59. #define ESRCH           3               /* No such process */
  60. #define EINTR           4               /* Interrupted system call */
  61. #define EIO             5               /* Input/output error */
  62. #define ENXIO           6               /* Device not configured */
  63. #define E2BIG           7               /* Argument list too long */
  64. #define ENOEXEC         8               /* Exec format error */
  65. #define EBADF           9               /* Bad file descriptor */
  66. #define ECHILD          10              /* No child processes */
  67. #define EDEADLK         11              /* Resource deadlock avoided */
  68.                                         /* 11 was EAGAIN */
  69. #define ENOMEM          12              /* Cannot allocate memory */
  70. #define EACCES          13              /* Permission denied */
  71. #define EFAULT          14              /* Bad address */
  72. #define ENOTBLK         15              /* Block device required */
  73. #define EBUSY           16              /* Device busy */
  74. #define EEXIST          17              /* File exists */
  75. #define EXDEV           18              /* Cross-device link */
  76. #define ENODEV          19              /* Operation not supported by device */
  77. #define ENOTDIR         20              /* Not a directory */
  78. #define EISDIR          21              /* Is a directory */
  79. #define EINVAL          22              /* Invalid argument */
  80. #define ENFILE          23              /* Too many open files in system */
  81. #define EMFILE          24              /* Too many open files */
  82. #define ENOTTY          25              /* Inappropriate ioctl for device */
  83. #define ETXTBSY         26              /* Text file busy */
  84. #define EFBIG           27              /* File too large */
  85. #define ENOSPC          28              /* No space left on device */
  86. #define ESPIPE          29              /* Illegal seek */
  87. #define EROFS           30              /* Read-only file system */
  88. #define EMLINK          31              /* Too many links */
  89. #define EPIPE           32              /* Broken pipe */
  90.  
  91. /* math software */
  92. #define EDOM            33              /* Numerical argument out of domain */
  93. #define ERANGE          34              /* Result too large */
  94.  
  95. /* non-blocking and interrupt i/o */
  96. #define EAGAIN          35              /* Resource temporarily unavailable */
  97. #define EWOULDBLOCK     EAGAIN          /* Operation would block */
  98. #define EINPROGRESS     36              /* Operation now in progress */
  99. #define EALREADY        37              /* Operation already in progress */
  100.  
  101. /* ipc/network software -- argument errors */
  102. #define ENOTSOCK        38              /* Socket operation on non-socket */
  103. #define EDESTADDRREQ    39              /* Destination address required */
  104. #define EMSGSIZE        40              /* Message too long */
  105. #define EPROTOTYPE      41              /* Protocol wrong type for socket */
  106. #define ENOPROTOOPT     42              /* Protocol not available */
  107. #define EPROTONOSUPPORT 43              /* Protocol not supported */
  108. #define ESOCKTNOSUPPORT 44              /* Socket type not supported */
  109. #define EOPNOTSUPP      45              /* Operation not supported on socket */
  110. #define EPFNOSUPPORT    46              /* Protocol family not supported */
  111. #define EAFNOSUPPORT    47              /* Address family not supported by protocol family */
  112. #define EADDRINUSE      48              /* Address already in use */
  113. #define EADDRNOTAVAIL   49              /* Can't assign requested address */
  114.  
  115. /* ipc/network software -- operational errors */
  116. #define ENETDOWN        50              /* Network is down */
  117. #define ENETUNREACH     51              /* Network is unreachable */
  118. #define ENETRESET       52              /* Network dropped connection on reset */
  119. #define ECONNABORTED    53              /* Software caused connection abort */
  120. #define ECONNRESET      54              /* Connection reset by peer */
  121. #define ENOBUFS         55              /* No buffer space available */
  122. #define EISCONN         56              /* Socket is already connected */
  123. #define ENOTCONN        57              /* Socket is not connected */
  124. #define ESHUTDOWN       58              /* Can't send after socket shutdown */
  125. #define ETOOMANYREFS    59              /* Too many references: can't splice */
  126. #define ETIMEDOUT       60              /* Connection timed out */
  127. #define ECONNREFUSED    61              /* Connection refused */
  128.  
  129. #define ELOOP           62              /* Too many levels of symbolic links */
  130. #define ENAMETOOLONG    63              /* File name too long */
  131.  
  132. /* should be rearranged */
  133. #define EHOSTDOWN       64              /* Host is down */
  134. #define EHOSTUNREACH    65              /* No route to host */
  135. #define ENOTEMPTY       66              /* Directory not empty */
  136.  
  137. /* quotas & mush */
  138. #define EPROCLIM        67              /* Too many processes */
  139. #define EUSERS          68              /* Too many users */
  140. #define EDQUOT          69              /* Disc quota exceeded */
  141.  
  142. /* Network File System */
  143. #define ESTALE          70              /* Stale NFS file handle */
  144. #define EREMOTE         71              /* Too many levels of remote in path */
  145. #define EBADRPC         72              /* RPC struct is bad */
  146. #define ERPCMISMATCH    73              /* RPC version wrong */
  147. #define EPROGUNAVAIL    74              /* RPC prog. not avail */
  148. #define EPROGMISMATCH   75              /* Program version wrong */
  149. #define EPROCUNAVAIL    76              /* Bad procedure for program */
  150.  
  151. #define ENOLCK          77              /* No locks available */
  152. #define ENOSYS          78              /* Function not implemented */
  153.  
  154. #define EFTYPE          79              /* Inappropriate file type or format */
  155.  
  156. /* pseudo-errors returned inside kernel to modify return to process */
  157. #define ERESTART        -1              /* restart syscall */
  158. #define EJUSTRETURN     -2              /* don't modify regs, just return */
  159.  
  160.  
  161.